import {WeaTools} from 'ecCom'


export const initLayoutInfo = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/initLayoutInfo', 'POST', params);
}

export const getWfStatisticCenterInfo = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/loadWfCenterBaseInfo', 'POST', params);
}

export const getWfStatisticCenterTabInfo = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/loadWfCenterTabBaseInfo', 'POST', params);
}

export const getRejectStatisticInfo = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getRejectStatisticInfo', 'POST', params);
}

export const getSuperviseStatisticInfo = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getSuperviseStatisticInfo', 'POST', params);
}

export const getToDoList = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getToDoList', 'POST', params);
}

export const getToDoTabList = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getToDoTabList', 'POST', params);
}

export const getAttentionList = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getAttentionList', 'POST', params);
}
export const getAttentionTabList = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getAttentionTabList', 'POST', params);
}

export const  getSettingDialogInfo = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getWfCenterSetting', 'POST', params);
}

export const getResList = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getResList', 'POST', params);
}

export const getReportList = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getReportList', 'POST', params)
}

export const getWfInfo = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/getWfInfo', 'POST', params);
}

export const doSetSave = params => {
  return WeaTools.callApi('/api/workflow/wfcenter/doEditWfCenterSetting', 'POST', params);
}

export const getTabCount = params  => {
  return WeaTools.callApi('/api/workflow/reqlist/doingCountInfo', 'POST', params);
}

//关注tag删除
export const saveAttention = (params) => {
	const _url  = '/api/workflow/requestAttention/saveAttention';
	return WeaTools.callApi(_url, 'POST',params);
}